import request from '@/utils/request'
export default {
    getList:function(params) {
        return request({
            url: '/help/task/list',
            method: 'get',
            params
        })
    },
    add:function(params) {
        return request({
            url: '/help/task',
            method: 'post',
            params
        })
    },
    update:function(params) {
        return request({
            url: '/help/task',
            method: 'PUT',
            params
        })
    },
    remove:function(id) {
        return request({
            url: '/help/task',
            method: 'delete',
            params: {
                id: id
            }
        })
    },
    getCity:function () {
      return request({
        url: "/h5/index/getCityInfo",
        method: "get"
      })
    },
    getTaskSteps: function (taskid) {
      return request({
        url: "/help/step/getTaskSteps",
        method: "get",
        params: {
          taskId: taskid
      }
      })
    },
    getClassify: function () {
      return request({
        url: "/h5/index/getClassify",
        method: 'get'
      })
    },
    pass:function(id){
      return request({
        url: "/help/task/pass",
        method: 'get',
        params:{
          taskId: id
        }
      })
    },
    noPass:function(params) {
      return request({
        url: '/help/task/onPass',
        method: 'PUT',
        params
      })
    }
}
